﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Fa.Kanbox.API.Demo
{
    public partial class FShareDialog : Form
    {
        public FShareDialog()
        {
            InitializeComponent();
        }
        public string[] Users { get; set; } 
        private void button2_Click(object sender, EventArgs e)
        {
            var users = textBox1.Text.Split(',');
            if (users.Length == 0 || string.IsNullOrWhiteSpace(users[0]))
            {
                MessageBox.Show("请输入需要分享的用户列表");
                return;
            }
            Users = users;
            this.DialogResult = DialogResult.OK;
            this.Close();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
